package com.company.gas.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
/**
 * @author: Li Guangdi
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("职工类")
public class Staff {
    @ApiModelProperty(value = "员工ID",position = 1)
    private String staffId;
    @ApiModelProperty(value = "员工姓名",position = 2)
    private String staffName;
    @ApiModelProperty(value = "部门",position = 3)
    private String department;
    @ApiModelProperty(value = "职位",position = 4)
    private String position;
    @ApiModelProperty(value = "电话号",position = 5)
    private String staffPhone;
    @ApiModelProperty(value = "薪水",position = 6)
    private BigDecimal salary;
    @ApiModelProperty(value = "标志位",position = 7)
    private Integer flag;
    @ApiModelProperty(value = "创建时间",position = 8)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty(value = "创建人",position = 9)
    private String createBy;
    @ApiModelProperty(value = "修改时间",position = 10)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date modifyTime;
    @ApiModelProperty(value = "修改人",position = 11)
    private String modifyBy;
}
